<?php $this->load->view('header', $head); ?>

		<!-- Start of first page: #one -->
		<div data-role="page" id="page-poll-list">
			<div data-role="header">
				<h1>Multi-page</h1>
			</div><!-- /header -->
			<div data-role="content" >
			<?php if($user = $this->user_lib->get_current_user()): ?>
				<p><?=$user->name?> has logged in</p>
				<p><a data-role="button" rel="external" href="<?=site_url('poll/vote')?>">설문하기</a></p>
				<p><a data-role="button" rel="external" href="<?=site_url('poll/create')?>">설문작성</a></p>
				<p><a data-role="button" data-ajax="false" href="<?=site_url('user/logout')?>">Logout</a></p>
			<?php else: ?>
				<div class="ui-grid-a">
					<div class="ui-block-a">
						<?php echo anchor('user/register', '회원가입', array('data-role' => 'button'))?>
					</div>
					<div class="ui-block-b">
						<?php echo anchor('user/login', '로그인', array('data-role' => 'button'))?>
					</div>
				</div>
			<?php endif; ?>
			</div><!-- /content -->
			<div data-role="footer" data-position="fixed" data-theme="a">
				<?php $this->load->view('navbar', array('active' => 'list'))?>
			</div><!-- /footer -->
		</div><!-- /page one -->
	</body>
</html>